package com.ostrich.module_player

import androidx.lifecycle.LiveData
import com.ostrich.library_base.BaseRepository
import com.ostrich.library_net.BaseResponse
import com.ostrich.library_net.RetrofitManager
import com.ostrich.module_player.entity.PlayerEntity


/**
 * @Author : yaotianxue
 * @Time : On 2023/11/3 14:12
 * @Description : PlayerRepository
 */
class PlayerRepository:BaseRepository() {
    private val playerApi:PlayerApi by lazy {
        RetrofitManager.instance.createService(PlayerApi::class.java)
    }
    fun relate(id:Int): LiveData<BaseResponse<MutableList<PlayerEntity>>>{
        return playerApi.relate(id)
    }

    fun comment(videoId:Int):LiveData<BaseResponse<MutableList<PlayerEntity>>>{
        return playerApi.comment(videoId)
    }


}